﻿using System.Collections.Generic;

namespace MikadoShooter
{
    public class SoundFile
    {
        public string Key { get; set; }
        public string IV { get; set; }
        public List<SoundElement> SoundElements { get; set; }

        public SoundFile()
        {
            SoundElements = new List<SoundElement>();
        }
    }

    public class SoundElement
    {
        private string name;
        private string hash;
        public int Start { get; set; }
        public int Length { get; set; }
        public string Name
        {
            get { return name; }
            set { name = value.ToLower(); }
        }
        public string Hash
        {
            get { return hash; }
            set { hash = value.ToLower(); }
        }

        public SoundElement()
        {
        }

        public SoundElement(int start, int length, string name, string hash)
        {
            Start = start;
            Length = length;
            Name = name;
            Hash = hash;
        }
    }
}